package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.AccountPlatformMapper;
import com.hcb.micro.dto.AccountPlatform;
import com.hcb.micro.service.IAccountPlatformService;

@Service("AccountPlatformService")
public class AccountPlatformServiceImpl implements IAccountPlatformService {

	@Autowired
	AccountPlatformMapper accountPlatformMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return accountPlatformMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AccountPlatform record) {
		return accountPlatformMapper.insert(record);
	}

	@Override
	public int insertSelective(AccountPlatform record) {
		return accountPlatformMapper.insertSelective(record);
	}

	@Override
	public AccountPlatform selectByPrimaryKey(Integer id) {
		return accountPlatformMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(AccountPlatform record) {
		return accountPlatformMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AccountPlatform record) {
		return accountPlatformMapper.updateByPrimaryKey(record);
	}

	@Override
	public AccountPlatform selectByAccountId(Integer accountId) {
		return accountPlatformMapper.selectByAccountId(accountId);
	}

	@Override
	public List<AccountPlatform> selectByPara(Map<String, Object> para) {
		return accountPlatformMapper.selectByPara(para);
	}

	@Override
	public int updateByAccountId(AccountPlatform record){
		return accountPlatformMapper.updateByAccountId(record);
	}
	
	@Override
	public List<AccountPlatform> selectGetIsPartner(Map<String,Object> para){
		return accountPlatformMapper.selectGetIsPartner(para);
		
	}
}
